package com.xing.dao;

import com.xing.entity.pojo.SystemUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemUserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(SystemUser record);

    int insertSelective(SystemUser record);

    SystemUser selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(SystemUser record);

    int updateByPrimaryKey(SystemUser record);

    SystemUser findByName(String name);

    SystemUser findUserAll(SystemUser user);

    List<SystemUser> findAll(@Param("systemUser") SystemUser systemUser);

    List<SystemUser> findByRoleId(String roleId);

    Boolean updateRoleId(@Param("roleId") String roleId,@Param("userId") String userId);
}